<html>

<head>
<title>First Project</title>
<meta name="DESCRIPTION"
content="Tutorial for creating Subclasses and Projects in JavaView">
<meta name="AUTHOR"    content="Konrad Polthier">
<meta name="KEYWORDS"  content="mathematics, geometry, visualization, software, graphics, education">
<meta name="LANGUANGE" content="en">
<meta name="RIGHTS"    content="All rights reserved by the author">
<meta name="ROBOTS"    content="follow">
<meta name="Date"      content="08/04/99">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Border" content="none, default">
</head>

<body>

<p><!--webbot bot="Navigation" s-type="siblings" s-orientation="horizontal"
s-rendering="text" b-include-home="FALSE" b-include-up="TRUE" u-page s-target startspan
--><nobr>[&nbsp;<a href="../index.html" target="">Up</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../firstApplet/index.html" target="">First&nbsp;Applet</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../firstApplication/index.html" target="">First&nbsp;Application</a>&nbsp;]</nobr> <nobr>[&nbsp;First&nbsp;Project&nbsp;]</nobr> <nobr>[&nbsp;<a href="../model/PaModel.html" target="">Models</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../loader/PaLoader.html" target="">Loader</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../key/PaKeyframe.html" target="">Keyframe</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../linear/PaLinear.html" target="">Linear</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../torusknot/PaTorusKnot.html" target="">Torus&nbsp;Knot</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../pick/PaPickEvent.html" target="">Pick&nbsp;Events</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../eventCamera/PaEventCamera.html" target="">Camera&nbsp;Events</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../color/PaColorDemo.html" target="">Color&nbsp;Selector</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../slider/PaSlider.html" target="">Slider</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../ruler/PaRuler.html" target="">Ruler</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../vectorField/PaVectorField.html" target="">Vector&nbsp;Field</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../polygonSet/PaPolygonSet.html" target="">Polygon&nbsp;Sets</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../height/PaHeight.html" target="">Scalar&nbsp;Field</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../ode/PaExprOde.html" target="">Ode</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../rootFinder/PaRootFinder.html" target="">Root&nbsp;Finder</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../parm/PaParmSurface.html" target="">ParmSurface</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../lsystem/PaLSystem.html" target="">L-System</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../texture/PaTexturedSurface.html" target="">Texture</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../rivara/PaRivara.html" target="">Refinement</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../fractal/PaFractalImage.html" target="">Images</a>&nbsp;]</nobr> <nobr>[&nbsp;<a href="../transform/PaTransform.html" target="">Transform</a>&nbsp;]</nobr><!--webbot bot="Navigation" endspan i-checksum="6273"
--></p>
<h2>Projects and Animation in <strong><em><font color="#004080">JavaView</font></em></strong></h2>
<blockquote>
  <p>Demo applet shows how to subclass from an existing geometry class in <strong><em><font
  color="#004080">JavaView</font></em></strong> and supply an own computation
  method for creating the coordinates of an (animated) surface.</p>
  <p>This example shows how to embed own classes in a <strong><em><font
  color="#004080">JavaView</font></em></strong> project. Nearly all applications
  in <strong><em><font color="#004080">JavaView</font></em></strong> are
  embedded into projects, each with a special functionality. Such projects can
  be reused as building blocks in other cirumstances, like a class. In fact, a
  project is a subclass of jv.project.PjProject, which allows to manage a set of
  geometries, a display(s), and other projects, and to react on animation and
  pick events.</p>
  <p>
  <applet code="vgp.tutor.firstProject.MyApplet.class" codebase="../../../"
  height="400" width="500" archive="jars/javaview.jar,jars/jvx.jar,jars/vgpapp.jar">
    <param name="Animation" value="Show">
    <param name="panel"     value="Project">
  </applet>
  </p>
</blockquote>
<blockquote>
  <p>Controls in project panel (ctrl-p or right-mouse/Control Panel/Inspector/Project):<table border="1" width="90%">
    <tr>
      <td>Slider &quot;Number of u-Lines&quot;</td>
      <td>Discretization of parameter domain in u-direction.</td>
    </tr>
    <tr>
      <td>Slider &quot;Number of v-Lines&quot;</td>
      <td>Discretization of parameter domain in v-direction.</td>
    </tr>
    <tr>
      <td>Button &quot;Reset&quot;</td>
      <td>Set Number of u-Lines and Number of v-Lines to the default values.</td>
    </tr>
  </table>
  <p>Usage: Press F4 or Ctrl-a to display the <a
  href="../animationPanel/AnimPanel.html">animation panel</a> and press the
  START button in the panel. While geometry animates, interaction in the viewer
  is simultaneously possible. This animation panel is also used for different
  other projects showing time-dependent phenomena.</p>
  <p>View source code:<a href="MyApplet.java"><br>
  MyApplet.java</a> of applet<br>
  <a href="MySurface.java">MySurface.java</a> of surface<a href="MyProject.java"><br>
  MyProject.java</a> of project<a href="MyProject_IP.java"><br>
  MyProject_IP.java</a> of info panel of project.</p>
</blockquote>
&nbsp;</body>

</html>
